

import numpy as np
import time

print("NumPy版本:", np.__version__)
arr1 = np.array([1, 2, 3, 4, 5])
arr2 = np.array([[1, 2, 3], [4, 5, 6]])

print("一维数组:", arr1)
print("二维数组:\n", arr2)
print("数组形状:", arr2.shape)
print("数组维度:", arr2.ndim)
print("元素总数:", arr2.size)
print("数据类型:", arr2.dtype)